import Vue from 'vue'
import App from './App.vue'
import TinyVue from '@opentiny/vue'
import HelloYemian from './components/HelloYemian.vue'
import VueRouter from 'vue-router'
import login from './views/login.vue'
import SeeCar from './components/SeeCar.vue'

Vue.config.productionTip = false
Vue.component('HelloYemian', HelloYemian)
Vue.component('SeeCar', SeeCar)
Vue.use(TinyVue)
Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/', component: HelloYemian, children: [

        { path: '/SeeCar', component: SeeCar }
      ]
    },


    { path: '/login', component: login },


  ]

})
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
